package com.ltmall.api.weixin.pay;

public class Constants {

    public static boolean      isDebug             = false;

    //商户号
    public static final String MCH_ID              = "1336857501";                                    //app上使用
    public static final String OA_MCH_ID           = "1409483202";                                    //线上环境
    public static final String DEBUG_OA_MCH_ID     = "1394670702";                                    //测试环境
    //public static final String OA_MCH_ID           = "1394670702";

    //appid
    public static final String APP_ID              = "wx46e1d4377e2b58e6";                            //app上使用
    public static final String OA_APP_ID           = "wx4fce44e3419d7005";                            //线上环境
    public static final String DEBUG_OA_APP_ID     = "wxcb8dd1a46cf9fb17";                            //测试环境
    //public static final String OA_APP_ID           = "wxcb8dd1a46cf9fb17";

    //app_secret
    //public static final String APP_SECRET          = "10750c81ec1de6b7c37533f8a2a6f5f3";               //app上使用
    public static final String OA_APP_SECRET       = "59a0b11aeb95534f120207a4b5b04f7e";              //线上环境
    public static final String DEBUG_OA_APP_SECRET = "6e09bfe700e1fa7a5afaea753b72d56f";              //测试环境
    //public static final String OA_APP_SECRET       = "6e09bfe700e1fa7a5afaea753b72d56f";

    //公众号与APP使用相同的Key，修改时需分别修改）
    public static final String KEY                 = "homeflaour1234567890123456789012";              //线上环境

    // 以下是几个API的路径：
    // 1）统一下单
    public static String       PAY_UNFIFIEDORDER   = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    // 2）被扫支付查询API
    public static String       PAY_QUERY_API       = "https://api.mch.weixin.qq.com/pay/orderquery";

    public static String appIDGet() {
        if (isDebug) {
            return DEBUG_OA_APP_ID;
        }
        return OA_APP_ID;
    }

    public static String mchIdGet() {
        if (isDebug) {
            return DEBUG_OA_MCH_ID;
        }
        return OA_MCH_ID;
    }

    public static String appSecretGet() {
        if (isDebug) {
            return DEBUG_OA_APP_SECRET;
        }
        return OA_APP_SECRET;
    }
}
